from likeshop.base.mybase import Tools


# 支付
class buy_model(Tools):
    # 定义登录路径
    path = "/page/payment/prepay"

    # 发送登录请求
    def buy_action(self, sbid, db):
        mydata = {
            "from": 'order',
            "order_id": sbid,
            "order_source": '6'
        }
        res = self.session.post(url=self.hosturl+self.path, data=mydata, headers=db)
        return res.json()


